cmake_minimum_required(VERSION 3.10)
project(VTK_Exercise CXX)

set(CMAKE_CXX_STANDARD 17)

find_package(VTK REQUIRED)
if(VTK_FOUND)
    message(STATUS "VTK found: ${VTK_VERSION}")
    include(${VTK_USE_FILE})
    link_libraries(${VTK_LIBRARIES})
    message(STATUS "VTK libraries: ${VTK_LIBRARIES}")
    message(STATUS "VTK include directories: ${VTK_INCLUDE_DIRS}")
else()
    message(FATAL_ERROR "VTK not found")
endif()

set(CMAKE_BUILD_TYPE RELEASE)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

add_subdirectory(ch2)